<template>
  <div class="about">
    <h1>This is an about page</h1>
    <button @click='add({n:300})'>+</button>
    <button @click='addAsync(666)'>async+</button>
  </div>
</template>
<script>
import { mapMutations, mapActions } from "vuex";

export default {
  methods: {
    ...mapMutations("MYA", ["dda"]),
    ...mapActions({
      addAsync: "add",
    }),
    // addAsync() {
    //   this.$store.dispatch("add", 666);
    // },
    // add() {
    //   this.$store.commit("add", {
    //     n: this.$store.state.count + 200,
    //   });
    //   // this.$store.state.count += 200;
    // },
    // minus() {},
  },
};
</script>
